// 用户模块接口请求
import { request } from '@/api/index.js'

// 获取图形验证码
export const useGetImgCodeService = async () => {
  return request.get('/captcha/image')
}

// 获取短信验证码
export const useGetTextCodeService = async (data) => {
  return request.post('/captcha/sendSmsCaptcha', data)
}

// 用户登录
export const uesLoginService = async (data) => {
  return request.post('/passport/login', data)
}
